#import <Cocoa/Cocoa.h>

extern const CGFloat ALTimelineViewPageWidth;

@class ALTimelineElement;


@interface ALCanvasPage : NSObject {
}

@property (nonatomic, assign) CGFloat leftBoundary;
@property (nonatomic, assign) CGFloat maxX;
@property (nonatomic, retain, readonly) NSArray *elements;

// Left and right boundaries are inclusive
-(id)initWithLeftBoundary:(CGFloat)leftX;
-(void)addElement:(ALTimelineElement *)element atRect:(NSRect)elementRect;
-(CGFloat)rightBoundary;
-(BOOL)pointInPage:(NSPoint)aPoint;
-(BOOL)pointInExtendedPage:(NSPoint)aPoint;
-(ALTimelineElement *)elementAtPoint:(NSPoint)aPoint;

@end
